package com.mobileshop.web.controller;

import java.util.List;

import com.jfinal.core.Controller;
import com.mobileshop.model.YProduct;

public class ProductController extends Controller{
	
	public void list(){
		
		List<YProduct> products=YProduct.dao.find("SELECT * FROM t_product ");
		setAttr("products", products);
		render("/webviews/productlist.html");
	}
}
